
package gov.chinatax.ctcps.generator.form;

import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for nzjzCzjy.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="nzjzCzjyForm"
 */
public class NzjzCzjyForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _jybh = null;
   private java.lang.String _nd = null;
   private java.lang.String _kmbm = null;
   private java.lang.String _zfxmbm = null;
   private java.math.BigDecimal _qnysshj = null;
   private java.math.BigDecimal _qnysssdq = null;
   private java.math.BigDecimal _qnysssdh = null;
   private java.math.BigDecimal _pfykjhshj = null;
   private java.math.BigDecimal _pfykjhsjbzj = null;
   private java.math.BigDecimal _pfykjhsjbsq = null;
   private java.math.BigDecimal _pfykjhsxmzj = null;
   private java.math.BigDecimal _pfykjhsxmsq = null;
   private java.math.BigDecimal _qnsjzcsdhxj = null;
   private java.math.BigDecimal _qnsjzcjbzj = null;
   private java.math.BigDecimal _qnsjzcjbsq = null;
   private java.math.BigDecimal _qnsjzcxmzj = null;
   private java.math.BigDecimal _qnsjzcxmsq = null;
   private java.math.BigDecimal _zbjyshj = null;
   private java.math.BigDecimal _zbjyshjjbzj = null;
   private java.math.BigDecimal _zbjysjbsq = null;
   private java.math.BigDecimal _zbjysxmzj = null;
   private java.math.BigDecimal _zbjysxmsq = null;
   private java.math.BigDecimal _sqjzhj = null;
   private java.math.BigDecimal _sqjhjbzj = null;
   private java.math.BigDecimal _sqjzjbsq = null;
   private java.math.BigDecimal _sqjzxmzj = null;
   private java.math.BigDecimal _sqjzxmsq = null;
   private java.lang.String _hzsjBz = null;
   private java.lang.String _jyztbh = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _sx = null;
   private java.lang.String pfcs = null;
   private java.math.BigDecimal snjylj = null;
   private java.lang.String yslxDm = null;
   private java.lang.String czpzwh = null;
   private java.math.BigDecimal jytz = null;
   private java.math.BigDecimal jytj = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;

   /**
    * Standard constructor.
    */
   public NzjzCzjyForm() {
   }

   public java.lang.String getPfcs() {
	return pfcs;
}

public void setPfcs(java.lang.String pfcs) {
	this.pfcs = pfcs;
}

public java.math.BigDecimal getSnjylj() {
	return snjylj;
}

public void setSnjylj(java.math.BigDecimal snjylj) {
	this.snjylj = snjylj;
}

public java.lang.String getYslxDm() {
	return yslxDm;
}

public void setYslxDm(java.lang.String yslxDm) {
	this.yslxDm = yslxDm;
}

public java.lang.String getCzpzwh() {
	return czpzwh;
}

public void setCzpzwh(java.lang.String czpzwh) {
	this.czpzwh = czpzwh;
}

public java.math.BigDecimal getJytz() {
	return jytz;
}

public void setJytz(java.math.BigDecimal jytz) {
	this.jytz = jytz;
}

public java.math.BigDecimal getJytj() {
	return jytj;
}

public void setJytj(java.math.BigDecimal jytj) {
	this.jytj = jytj;
}

/**
    * Returns the jybh
    *
    * @return the jybh
    */
   public java.lang.String getJybh() {
      return _jybh;
   }

   /**
    * Sets the jybh
    *
    * @param jybh the new jybh value
    */
   public void setJybh(java.lang.String jybh) {
      _jybh = jybh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the kmbm
    *
    * @return the kmbm
    */
   public java.lang.String getKmbm() {
      return _kmbm;
   }

   /**
    * Sets the kmbm
    *
    * @param kmbm the new kmbm value
    */
   public void setKmbm(java.lang.String kmbm) {
      _kmbm = kmbm;
   }
   /**
    * Returns the zfxmbm
    *
    * @return the zfxmbm
    */
   public java.lang.String getZfxmbm() {
      return _zfxmbm;
   }

   /**
    * Sets the zfxmbm
    *
    * @param zfxmbm the new zfxmbm value
    */
   public void setZfxmbm(java.lang.String zfxmbm) {
      _zfxmbm = zfxmbm;
   }
   /**
    * Returns the qnysshj
    *
    * @return the qnysshj
    */
   public java.math.BigDecimal getQnysshj() {
      return _qnysshj;
   }

   /**
    * Sets the qnysshj
    *
    * @param qnysshj the new qnysshj value
    */
   public void setQnysshj(java.math.BigDecimal qnysshj) {
      _qnysshj = qnysshj;
   }
   /**
    * Returns the qnysssdq
    *
    * @return the qnysssdq
    */
   public java.math.BigDecimal getQnysssdq() {
      return _qnysssdq;
   }

   /**
    * Sets the qnysssdq
    *
    * @param qnysssdq the new qnysssdq value
    */
   public void setQnysssdq(java.math.BigDecimal qnysssdq) {
      _qnysssdq = qnysssdq;
   }
   /**
    * Returns the qnysssdh
    *
    * @return the qnysssdh
    */
   public java.math.BigDecimal getQnysssdh() {
      return _qnysssdh;
   }

   /**
    * Sets the qnysssdh
    *
    * @param qnysssdh the new qnysssdh value
    */
   public void setQnysssdh(java.math.BigDecimal qnysssdh) {
      _qnysssdh = qnysssdh;
   }
   /**
    * Returns the pfykjhshj
    *
    * @return the pfykjhshj
    */
   public java.math.BigDecimal getPfykjhshj() {
      return _pfykjhshj;
   }

   /**
    * Sets the pfykjhshj
    *
    * @param pfykjhshj the new pfykjhshj value
    */
   public void setPfykjhshj(java.math.BigDecimal pfykjhshj) {
      _pfykjhshj = pfykjhshj;
   }
   /**
    * Returns the pfykjhsjbzj
    *
    * @return the pfykjhsjbzj
    */
   public java.math.BigDecimal getPfykjhsjbzj() {
      return _pfykjhsjbzj;
   }

   /**
    * Sets the pfykjhsjbzj
    *
    * @param pfykjhsjbzj the new pfykjhsjbzj value
    */
   public void setPfykjhsjbzj(java.math.BigDecimal pfykjhsjbzj) {
      _pfykjhsjbzj = pfykjhsjbzj;
   }
   /**
    * Returns the pfykjhsjbsq
    *
    * @return the pfykjhsjbsq
    */
   public java.math.BigDecimal getPfykjhsjbsq() {
      return _pfykjhsjbsq;
   }

   /**
    * Sets the pfykjhsjbsq
    *
    * @param pfykjhsjbsq the new pfykjhsjbsq value
    */
   public void setPfykjhsjbsq(java.math.BigDecimal pfykjhsjbsq) {
      _pfykjhsjbsq = pfykjhsjbsq;
   }
   /**
    * Returns the pfykjhsxmzj
    *
    * @return the pfykjhsxmzj
    */
   public java.math.BigDecimal getPfykjhsxmzj() {
      return _pfykjhsxmzj;
   }

   /**
    * Sets the pfykjhsxmzj
    *
    * @param pfykjhsxmzj the new pfykjhsxmzj value
    */
   public void setPfykjhsxmzj(java.math.BigDecimal pfykjhsxmzj) {
      _pfykjhsxmzj = pfykjhsxmzj;
   }
   /**
    * Returns the pfykjhsxmsq
    *
    * @return the pfykjhsxmsq
    */
   public java.math.BigDecimal getPfykjhsxmsq() {
      return _pfykjhsxmsq;
   }

   /**
    * Sets the pfykjhsxmsq
    *
    * @param pfykjhsxmsq the new pfykjhsxmsq value
    */
   public void setPfykjhsxmsq(java.math.BigDecimal pfykjhsxmsq) {
      _pfykjhsxmsq = pfykjhsxmsq;
   }
   /**
    * Returns the qnsjzcsdhxj
    *
    * @return the qnsjzcsdhxj
    */
   public java.math.BigDecimal getQnsjzcsdhxj() {
      return _qnsjzcsdhxj;
   }

   /**
    * Sets the qnsjzcsdhxj
    *
    * @param qnsjzcsdhxj the new qnsjzcsdhxj value
    */
   public void setQnsjzcsdhxj(java.math.BigDecimal qnsjzcsdhxj) {
      _qnsjzcsdhxj = qnsjzcsdhxj;
   }
   /**
    * Returns the qnsjzcjbzj
    *
    * @return the qnsjzcjbzj
    */
   public java.math.BigDecimal getQnsjzcjbzj() {
      return _qnsjzcjbzj;
   }

   /**
    * Sets the qnsjzcjbzj
    *
    * @param qnsjzcjbzj the new qnsjzcjbzj value
    */
   public void setQnsjzcjbzj(java.math.BigDecimal qnsjzcjbzj) {
      _qnsjzcjbzj = qnsjzcjbzj;
   }
   /**
    * Returns the qnsjzcjbsq
    *
    * @return the qnsjzcjbsq
    */
   public java.math.BigDecimal getQnsjzcjbsq() {
      return _qnsjzcjbsq;
   }

   /**
    * Sets the qnsjzcjbsq
    *
    * @param qnsjzcjbsq the new qnsjzcjbsq value
    */
   public void setQnsjzcjbsq(java.math.BigDecimal qnsjzcjbsq) {
      _qnsjzcjbsq = qnsjzcjbsq;
   }
   /**
    * Returns the qnsjzcxmzj
    *
    * @return the qnsjzcxmzj
    */
   public java.math.BigDecimal getQnsjzcxmzj() {
      return _qnsjzcxmzj;
   }

   /**
    * Sets the qnsjzcxmzj
    *
    * @param qnsjzcxmzj the new qnsjzcxmzj value
    */
   public void setQnsjzcxmzj(java.math.BigDecimal qnsjzcxmzj) {
      _qnsjzcxmzj = qnsjzcxmzj;
   }
   /**
    * Returns the qnsjzcxmsq
    *
    * @return the qnsjzcxmsq
    */
   public java.math.BigDecimal getQnsjzcxmsq() {
      return _qnsjzcxmsq;
   }

   /**
    * Sets the qnsjzcxmsq
    *
    * @param qnsjzcxmsq the new qnsjzcxmsq value
    */
   public void setQnsjzcxmsq(java.math.BigDecimal qnsjzcxmsq) {
      _qnsjzcxmsq = qnsjzcxmsq;
   }
   /**
    * Returns the zbjyshj
    *
    * @return the zbjyshj
    */
   public java.math.BigDecimal getZbjyshj() {
      return _zbjyshj;
   }

   /**
    * Sets the zbjyshj
    *
    * @param zbjyshj the new zbjyshj value
    */
   public void setZbjyshj(java.math.BigDecimal zbjyshj) {
      _zbjyshj = zbjyshj;
   }
   /**
    * Returns the zbjyshjjbzj
    *
    * @return the zbjyshjjbzj
    */
   public java.math.BigDecimal getZbjyshjjbzj() {
      return _zbjyshjjbzj;
   }

   /**
    * Sets the zbjyshjjbzj
    *
    * @param zbjyshjjbzj the new zbjyshjjbzj value
    */
   public void setZbjyshjjbzj(java.math.BigDecimal zbjyshjjbzj) {
      _zbjyshjjbzj = zbjyshjjbzj;
   }
   /**
    * Returns the zbjysjbsq
    *
    * @return the zbjysjbsq
    */
   public java.math.BigDecimal getZbjysjbsq() {
      return _zbjysjbsq;
   }

   /**
    * Sets the zbjysjbsq
    *
    * @param zbjysjbsq the new zbjysjbsq value
    */
   public void setZbjysjbsq(java.math.BigDecimal zbjysjbsq) {
      _zbjysjbsq = zbjysjbsq;
   }
   /**
    * Returns the zbjysxmzj
    *
    * @return the zbjysxmzj
    */
   public java.math.BigDecimal getZbjysxmzj() {
      return _zbjysxmzj;
   }

   /**
    * Sets the zbjysxmzj
    *
    * @param zbjysxmzj the new zbjysxmzj value
    */
   public void setZbjysxmzj(java.math.BigDecimal zbjysxmzj) {
      _zbjysxmzj = zbjysxmzj;
   }
   /**
    * Returns the zbjysxmsq
    *
    * @return the zbjysxmsq
    */
   public java.math.BigDecimal getZbjysxmsq() {
      return _zbjysxmsq;
   }

   /**
    * Sets the zbjysxmsq
    *
    * @param zbjysxmsq the new zbjysxmsq value
    */
   public void setZbjysxmsq(java.math.BigDecimal zbjysxmsq) {
      _zbjysxmsq = zbjysxmsq;
   }
   /**
    * Returns the sqjzhj
    *
    * @return the sqjzhj
    */
   public java.math.BigDecimal getSqjzhj() {
      return _sqjzhj;
   }

   /**
    * Sets the sqjzhj
    *
    * @param sqjzhj the new sqjzhj value
    */
   public void setSqjzhj(java.math.BigDecimal sqjzhj) {
      _sqjzhj = sqjzhj;
   }
   /**
    * Returns the sqjhjbzj
    *
    * @return the sqjhjbzj
    */
   public java.math.BigDecimal getSqjhjbzj() {
      return _sqjhjbzj;
   }

   /**
    * Sets the sqjhjbzj
    *
    * @param sqjhjbzj the new sqjhjbzj value
    */
   public void setSqjhjbzj(java.math.BigDecimal sqjhjbzj) {
      _sqjhjbzj = sqjhjbzj;
   }
   /**
    * Returns the sqjzjbsq
    *
    * @return the sqjzjbsq
    */
   public java.math.BigDecimal getSqjzjbsq() {
      return _sqjzjbsq;
   }

   /**
    * Sets the sqjzjbsq
    *
    * @param sqjzjbsq the new sqjzjbsq value
    */
   public void setSqjzjbsq(java.math.BigDecimal sqjzjbsq) {
      _sqjzjbsq = sqjzjbsq;
   }
   /**
    * Returns the sqjzxmzj
    *
    * @return the sqjzxmzj
    */
   public java.math.BigDecimal getSqjzxmzj() {
      return _sqjzxmzj;
   }

   /**
    * Sets the sqjzxmzj
    *
    * @param sqjzxmzj the new sqjzxmzj value
    */
   public void setSqjzxmzj(java.math.BigDecimal sqjzxmzj) {
      _sqjzxmzj = sqjzxmzj;
   }
   /**
    * Returns the sqjzxmsq
    *
    * @return the sqjzxmsq
    */
   public java.math.BigDecimal getSqjzxmsq() {
      return _sqjzxmsq;
   }

   /**
    * Sets the sqjzxmsq
    *
    * @param sqjzxmsq the new sqjzxmsq value
    */
   public void setSqjzxmsq(java.math.BigDecimal sqjzxmsq) {
      _sqjzxmsq = sqjzxmsq;
   }
   /**
    * Returns the hzsjBz
    *
    * @return the hzsjBz
    */
   public java.lang.String getHzsjBz() {
      return _hzsjBz;
   }

   /**
    * Sets the hzsjBz
    *
    * @param hzsjBz the new hzsjBz value
    */
   public void setHzsjBz(java.lang.String hzsjBz) {
      _hzsjBz = hzsjBz;
   }
   /**
    * Returns the jyztbh
    *
    * @return the jyztbh
    */
   public java.lang.String getJyztbh() {
      return _jyztbh;
   }

   /**
    * Sets the jyztbh
    *
    * @param jyztbh the new jyztbh value
    */
   public void setJyztbh(java.lang.String jyztbh) {
      _jyztbh = jyztbh;
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the sx
    *
    * @return the sx
    */
   public java.lang.String getSx() {
      return _sx;
   }

   /**
    * Sets the sx
    *
    * @param sx the new sx value
    */
   public void setSx(java.lang.String sx) {
      _sx = sx;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getJybh() == null) {
         errors.add("jybh", new ActionError("error.jybh.required"));
      }
      if(getNd() == null) {
         errors.add("nd", new ActionError("error.nd.required"));
      }
      if(getKmbm() == null) {
         errors.add("kmbm", new ActionError("error.kmbm.required"));
      }
      if(getQnysshj() == null) {
         errors.add("qnysshj", new ActionError("error.qnysshj.required"));
      }
      if(getQnysssdq() == null) {
         errors.add("qnysssdq", new ActionError("error.qnysssdq.required"));
      }
      if(getQnysssdh() == null) {
         errors.add("qnysssdh", new ActionError("error.qnysssdh.required"));
      }
      if(getPfykjhshj() == null) {
         errors.add("pfykjhshj", new ActionError("error.pfykjhshj.required"));
      }
      if(getPfykjhsjbzj() == null) {
         errors.add("pfykjhsjbzj", new ActionError("error.pfykjhsjbzj.required"));
      }
      if(getPfykjhsjbsq() == null) {
         errors.add("pfykjhsjbsq", new ActionError("error.pfykjhsjbsq.required"));
      }
      if(getPfykjhsxmzj() == null) {
         errors.add("pfykjhsxmzj", new ActionError("error.pfykjhsxmzj.required"));
      }
      if(getPfykjhsxmsq() == null) {
         errors.add("pfykjhsxmsq", new ActionError("error.pfykjhsxmsq.required"));
      }
      if(getQnsjzcsdhxj() == null) {
         errors.add("qnsjzcsdhxj", new ActionError("error.qnsjzcsdhxj.required"));
      }
      if(getQnsjzcjbzj() == null) {
         errors.add("qnsjzcjbzj", new ActionError("error.qnsjzcjbzj.required"));
      }
      if(getQnsjzcjbsq() == null) {
         errors.add("qnsjzcjbsq", new ActionError("error.qnsjzcjbsq.required"));
      }
      if(getQnsjzcxmzj() == null) {
         errors.add("qnsjzcxmzj", new ActionError("error.qnsjzcxmzj.required"));
      }
      if(getQnsjzcxmsq() == null) {
         errors.add("qnsjzcxmsq", new ActionError("error.qnsjzcxmsq.required"));
      }
      if(getZbjyshj() == null) {
         errors.add("zbjyshj", new ActionError("error.zbjyshj.required"));
      }
      if(getZbjyshjjbzj() == null) {
         errors.add("zbjyshjjbzj", new ActionError("error.zbjyshjjbzj.required"));
      }
      if(getZbjysjbsq() == null) {
         errors.add("zbjysjbsq", new ActionError("error.zbjysjbsq.required"));
      }
      if(getZbjysxmzj() == null) {
         errors.add("zbjysxmzj", new ActionError("error.zbjysxmzj.required"));
      }
      if(getZbjysxmsq() == null) {
         errors.add("zbjysxmsq", new ActionError("error.zbjysxmsq.required"));
      }
      if(getSqjzhj() == null) {
         errors.add("sqjzhj", new ActionError("error.sqjzhj.required"));
      }
      if(getSqjhjbzj() == null) {
         errors.add("sqjhjbzj", new ActionError("error.sqjhjbzj.required"));
      }
      if(getSqjzjbsq() == null) {
         errors.add("sqjzjbsq", new ActionError("error.sqjzjbsq.required"));
      }
      if(getSqjzxmzj() == null) {
         errors.add("sqjzxmzj", new ActionError("error.sqjzxmzj.required"));
      }
      if(getSqjzxmsq() == null) {
         errors.add("sqjzxmsq", new ActionError("error.sqjzxmsq.required"));
      }
      if(getHzsjBz() == null) {
         errors.add("hzsjBz", new ActionError("error.hzsjBz.required"));
      }
      if(getJyztbh() == null) {
         errors.add("jyztbh", new ActionError("error.jyztbh.required"));
      }
      if(getDwbh() == null) {
         errors.add("dwbh", new ActionError("error.dwbh.required"));
      }
      // TODO test format/data
      return errors;
   }
}
